//Implementation file - Face.cpp
#include "Face.h"

#pragma hdrstop
#pragma package(smart_init)

Face::Face( int i ){
        nV = i;
        this-> vN = new NormalVertex *[i];
}

Face::Face( int i,NormalVertex** nv ){
        nV = i;
        this-> vN = nv;
}

Face::~Face( ) {
        for ( int i = 0 ; i<nV ; i++) delete vN[i];
        delete [] vN;
}

int Face::getnV( ) {
        return nV;
}

int Face::getiV( int i) {
        return vN[i]->getVertexIndex();
}

int Face::getiN( int i ) {
        return vN[i]->getNumberIndex();
}

void Face::setnV( int i ) {
        nV=i;
};

void Face::setNormalVertex( NormalVertex* vn , int i ) {
        this->vN[i]=vn;
}



